package com.ssy.lingxi.platform.manage.api.hystrix.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.inner.SensitiveWordControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.sensitive.SensitiveWordFilterDTO;
import com.ssy.lingxi.platform.manage.api.model.dto.sensitive.SensitiveWordListFilterDTO;
import com.ssy.lingxi.platform.manage.api.model.vo.sensitive.SensitiveWordFilterVO;
import com.ssy.lingxi.platform.manage.api.model.vo.sensitive.SensitiveWordListFilterVO;
import org.springframework.stereotype.Component;

@Component
public class SensitiveWordControllerFeignFallback implements SensitiveWordControllerFeign {

    @Override
    public Wrapper<SensitiveWordFilterVO> filterSensitiveWord(SensitiveWordFilterDTO request) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<SensitiveWordListFilterVO> filterSensitiveWordList(SensitiveWordListFilterDTO request) {
        return Wrapper.failService("服务调用异常");
    }
}
